import request from '@/utils/request'

// 注册方法
export function register(data) {
	return request({
		url: '/register',
		headers: {
			isToken: false
		},
		method: 'post',
		data: data
	})
}

// 获取验证码
export function getCodeImg(email) {
	return request({
		url: '/register/code/' + email,
		method: 'get',
		headers: {
			isToken: false
		},
	})
}